﻿namespace WarehouseManagementSystem.DAL;

public interface IRepository<T> where T : class
{
    Task<int> Insert(T entity);

    Task<int> Update(T entity);

    Task<int> Delete(T entity);

    Task<List<T>> GetAll();

    Task<List<T>> FindAll(string keyWords);

    Task<T> FindFirst(string keyWords);
}